<template>
  <div>
    <el-row :gutter="10">
      <!-- 第一个card -->
      <el-col :span="6">
        <el-card>
          <Detail title="总销售额" count="￥ 21414">
            <template slot="charts">
              <span
                >同日比&nbsp;&nbsp;56.67%
                <i class="el-icon-caret-top" style="color: greenyellow"></i>
              </span>
              <span
                >日同比&nbsp;&nbsp;19.16%
                <i class="el-icon-caret-bottom" style="color: red"></i>
              </span>
            </template>
            <template slot="footer">
              <span>日销售额￥ 12345</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <!-- 第二个card -->
      <el-col :span="6">
        <el-card>
          <Detail title="访问量" count="434324">
            <template slot="charts">
              <lineChart></lineChart>
            </template>
            <template slot="footer">
              <span>日访问量 12345</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <!-- 第三个card -->
      <el-col :span="6">
        <el-card>
          <Detail title="支付笔数" count="65462">
            <template slot="charts">
              <barCharts></barCharts>
            </template>
            <template slot="footer">
              <span>转换率 65%</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <!-- 第四个card -->
      <el-col :span="6">
        <el-card>
          <Detail title="运营活动效果" count="78%">
            <template slot="charts">
              <progressCharts></progressCharts>
            </template>
            <template slot="footer">
              <span
                >同日比&nbsp;&nbsp;56.67%
                <i class="el-icon-caret-top" style="color: greenyellow"></i>
              </span>
              <span
                >日同比&nbsp;&nbsp;19.16%
                <i class="el-icon-caret-bottom" style="color: red"></i>
              </span>
            </template>
          </Detail>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Detail from "./Detail";
import lineChart from "./lineChart";
import barCharts from "./barCharts";
import progressCharts from "./progressCharts";

export default {
  components: { Detail, lineChart, barCharts, progressCharts },
};
</script>

<style>
</style>